package com.example.demo.controller;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

/**
 * @author Johnson
 * @date 2020/12/24 10:16
 */
@RestController
public class SayHelloController {

    @GetMapping("/hello")
    public String greeting(String name) {
        System.out.println("call 2");
        return "hello" + name;

    }

}
